﻿using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web.Http;
using System.Web.Http.Results;
using ZHDJ.AppInterface.Common;
using ZHDJ.AppInterface.Models;
using ZHDJ.Core;
using ZHDJ.Data;

namespace ZHDJ.AppInterface.Controllers
{
    public class TUserInfoController : ApiController
    {
        #region 获取不在线的好视通用户信息
        [HttpPost]
        public ReturnResult GetUserInfoNotOnLine(dynamic obj)
        {
            ReturnResult result = new ReturnResult();
            t_userinfo model = InterfaceHelper.GetTUserInfoWhereNotOnLine();
            if (model == null)
            {
                result.code = "201";
                result.msg = "没有空余的账号分配给您";
            }
            else
            {
                result.code = "200";
                result.result = model;
                result.msg = "success";
            }
            return result;
        }
        #endregion
    }
}
